import request from '@/utils/request'

export function getUserList(data) {
  return request({
    url: '/user/queryUserAll',
    method: 'post',
    data
  })
}
export function getUserByUserId(data) {
  return request({
    url: '/user/getUserByUserId',
    method: 'post',
    data
  })
}
export function updateAuthUserInfoAndRole(data) {
  return request({
    url: '/user/updateAuthUserInfoAndRole',
    method: 'post',
    data
  })
}
export function resetUserPwd(data) {
  return request({
    url: '/user/resetUserPwd',
    method: 'post',
    data
  })
}
export function queryAuthRoleAllByStatus(data) {
  return request({
    url: '/resource/queryAuthRoleAllByStatus',
    method: 'post',
    data
  })
}
export function admin_register(data) {
  return request({
    url: '/user/admin_register',
    method: 'post',
    data
  })
}
export function userCount(data) {
  return request({
    url: '/sys/user/count',
    method: 'post',
    data
  })
}
